package com.rds.common.api.eco.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rds.common.annotation.Excel;
import com.rds.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 rda_eco
 * 
 * @author ruoyi
 * @date 2023-12-07
 */
public class RdaEco extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 说明 */
    @Excel(name = "说明")
    private String description;

    /** 类型 */
    @Excel(name = "类型")
    private Integer typeid;

    /** 策略 */
    @Excel(name = "策略")
    private Integer policyid;

    /** 状态 */
    @Excel(name = "状态")
    private Integer stateid;

    /** 所有者id */
    @Excel(name = "所有者id")
    private Long ownerid;

    /** 默认为1正常 */
    @Excel(name = "默认为1正常")
    private Long status;

    /** 版本 */
    @Excel(name = "版本")
    private String revision;

    /** 修改日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 修改日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setTypeid(Integer typeid)
    {
        this.typeid = typeid;
    }

    public Integer getTypeid()
    {
        return typeid;
    }
    public void setPolicyid(Integer policyid)
    {
        this.policyid = policyid;
    }

    public Integer getPolicyid()
    {
        return policyid;
    }
    public void setStateid(Integer stateid)
    {
        this.stateid = stateid;
    }

    public Integer getStateid()
    {
        return stateid;
    }
    public void setOwnerid(Long ownerid) 
    {
        this.ownerid = ownerid;
    }

    public Long getOwnerid() 
    {
        return ownerid;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setRevision(String revision) 
    {
        this.revision = revision;
    }

    public String getRevision() 
    {
        return revision;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("typeid", getTypeid())
            .append("policyid", getPolicyid())
            .append("stateid", getStateid())
            .append("ownerid", getOwnerid())
            .append("status", getStatus())
            .append("revision", getRevision())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .toString();
    }
}
